package com.foreknow.demo5;

/**
 * 类：具有相同属性和行为的一个模板
 */
public class Student {
    //属性(变量)
    String sid;
    String name;
    int age;
    String school;
    //行为(方法)
    public void study() {
        System.out.println("study......");
    }

    public String eat() {
        //System.out.println("eat.......");
        return "吃饭";
    }

    public void sleep() {
        System.out.println("sleep......");
    }

    public void game() {
        System.out.println("game......");
    }


}
